﻿using System;
using System.Linq;
using System.Data.Objects;
using AidBrella.Models;
using Moq;
using Xunit;

namespace AidBrellaTest
{
	public class AuthenticationServiceTest
	{
		private AuthenticationService authenticator;

		public AuthenticationServiceTest()
		{
	      	authenticator = new AuthenticationService();
		}

		[Fact]
		public void Authentication_fails_when_user_does_not_exist()
		{
			Assert.Throws<UserNotFoundException>(() => authenticator.Authenticate("test@example.com", "password"));
		}
	}

	public class UserNotFoundException : Exception
	{
	}

	public class AuthenticationService
	{
		public UserSet Authenticate(string testExampleCom, string password)
		{
			return null;
		}
	}
}
